package cs304.p3.library.exceptions;

@SuppressWarnings("serial")
public class InvalidBorrowerException extends AbstractLDBException {
	
	private String bid;
	
	public InvalidBorrowerException(String bid, String msg){
		super(msg);
		this.bid = bid;
	}
	
	public InvalidBorrowerException(String bid) {
		this(bid, "Invalid Borrower Exception");
	}
	
	public void setBid(String bid) {
		this.bid = bid;
	}
	
	public String getBid() {
		return bid;
	}
	
	@Override
	public String getErrorMessage() {
		return "Your " + bid + " is invalid (Cannot be found)!";
	}
	
	@Override
	public String getErrorMessageTitle() {
		return "Invalid Login";
	}
	
}
